package com.dure.commonlib.util;

import android.graphics.Path;
import android.graphics.PathMeasure;

/**
 * Created by leix on 8/19/16.
 */
public class PathUtil {

    public static float getPathLength(Path path) {

        PathMeasure pathMeasure = new PathMeasure();
        pathMeasure.setPath(path, false);

        return pathMeasure.getLength();
    }
}
